package com.example.springLearning.part9.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.event.SimpleApplicationEventMulticaster;
import org.springframework.stereotype.Component;

@Component
public class MyContentBean {

//    @Bean
//    public SimpleApplicationEventMulticaster simpleApplicationEventMulticaster(ApplicationContext applicationContext) {
//        SimpleApplicationEventMulticaster simpleApplicationEventMulticaster = applicationContext.getBean(SimpleApplicationEventMulticaster.class);
//        simpleApplicationEventMulticaster.setErrorHandler(TaskUtils.LOG_AND_SUPPRESS_ERROR_HANDLER);
//        return simpleApplicationEventMulticaster;
//    }
}
